package com.liu.nb.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liu.nb.entity.DebugtaskPole;
import com.liu.nb.mapper.DebugtaskPoleMapper;
import com.liu.nb.service.IDebugtaskPoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 消缺任务和塔杆中间表 服务实现类
 * </p>
 *
 * @author yzl
 * @since 2021-08-31
 */
@Service
public class DebugtaskPoleServiceImpl extends ServiceImpl<DebugtaskPoleMapper, DebugtaskPole> implements IDebugtaskPoleService {
    @Autowired
    DebugtaskPoleMapper debugtaskPoleMapper;
    @Override
    public DebugtaskPole getOneDeBugTask(String id) {
        return debugtaskPoleMapper.getOneDeBugTask(id);
    }

    @Override
    public List<DebugtaskPole> getOneDeBugTaskAll(String id) {
        return debugtaskPoleMapper.getOneDeBugTaskAll(id);
    }

    @Override
    public IPage<DebugtaskPole> getPatrolTaskBug(Page<DebugtaskPole> page, String id, String cid, Integer state, LocalDateTime firstTime, LocalDateTime lastTime) {
        return debugtaskPoleMapper.getPatrolTaskBug(page,id,cid,state,firstTime,lastTime);
    }
}
